package itcast.service.impl;

import itcast.dao.OuttDao;
import itcast.dao.impl.OuttDaoImpl;
import itcast.domain.Outt;
import itcast.service.OuttService;

import java.util.List;
import java.util.Map;

public class OuttServiceImpl implements OuttService {
    OuttDao outtDao=new OuttDaoImpl();
    @Override
    public List<Outt> findstudent_out() {
        return outtDao.findout_student();
    }

    //根据学号查找学生迁入信息

    @Override
    public List<Outt> findstudent_outByDate(Map<String, String[]> condition) {
        return outtDao.findout_studentbyDate(condition);
    }

    //根据学号确认学生信息

    @Override
    public Outt findout_ById(String id) {
        return outtDao.findout_studentbyid(id);
    }

    //迁出信息设置

    @Override
    public void updateout_student(Outt outt) {
        outtDao.updateout_student(outt);
    }

    //查找迁出记录

    @Override
    public List<Outt> findout_remarkAll() {
        return outtDao.findout_remeber();
    }
}
